/*
 * @Author: luojianfeng
 * @Date: 2025-10-22 16:59:05
 * @LastEditTime: 2025-10-22 18:10:19
 * @LastEditors: luojianfeng
 * @Description:
 */
import { JsonToExcelConverter } from './converter'
import type { ConverterOptions, JsonRecord } from './types'

export async function jsonDirToExcel(
  options?: ConverterOptions
): Promise<string> {
  const c = new JsonToExcelConverter(options)
  return c.convert()
}

export const createConverter = (options?: ConverterOptions) =>
  new JsonToExcelConverter(options)
